import React from 'react';
import { Route, Switch } from 'react-router-dom';
import Admin from '../scenes/admin/index';
import Login from '../scenes/login/index';

const routes = (
    <Route>
        <Switch>
            <Route exact path='/' component={Login} />
            <Route path='/admin' component={Admin}/>
        </Switch>
    </Route>
);
export default routes;
